From: Pavel Janík Date: Tue, 1 Jan 2002 22:08:54 +0000 (+0000) Subject: (main): Parenthesize assignment when used as truth value to prevent gcc X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~59460 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=25b18337e96c4e3e21019e9c4744daead2ea57c5;p=emacs.git (main): Parenthesize assignment when used as truth value to prevent gcc warnings. --- diff --git a/lib-src/b2m.c b/lib-src/b2m.c index 8801f2f702f..05caa1424e0 100644 --- a/lib-src/b2m.c +++ b/lib-src/b2m.c @@ -168,7 +168,7 @@ main (argc, argv) p = strtok (data.buffer, " ,\r\n\t"); labels = "X-Babyl-Labels: "; - while (p = strtok (NULL, " ,\r\n\t")) + while ((p = strtok (NULL, " ,\r\n\t"))) labels = concat (labels, p, ", "); p = &labels[strlen (labels) - 2];